import request from '../../utils/request.js'
import axios from 'axios'


export const getHomeList = (data) => request({
	method: "get",
	url: "/articles",
	params: data
})


// 获取音乐列表
export const getMusicList = (id) => request({
	method: 'get',
	url: "/music?uid=" + id
})

// 模糊查询
export const likeArticle = (keyWord) => request({
	method: 'get',
	url: `/articles/like?keyWord=${keyWord}`,
	data: {
		pageNum: 1,
		pageSize: 500
	}
})


// es 模糊查询
export const likeArticleES = (keyWord) => request({
	method: 'get',
	url: `/articles/esLike?keyWord=${keyWord}`
})